package com.codermn.枚举类;

/**
 * @author jxau_scf
 * @date 2021/7/28 - 16:28
 */
public class Test {
    public static void main(String[] args) {
//        SeasonEnum spring = SeasonEnum.valueOf("SPRING");
//        System.out.println(spring);
//
//        SeasonEnum[] values = SeasonEnum.values();
//        System.out.println(Arrays.toString(values));
//        SeasonEnum autumn = SeasonEnum.AUTUMN;
//        System.out.println(autumn);
//        Class<SeasonEnum> declaringClass = SeasonEnum.SPRING.getDeclaringClass();
//        System.out.println(declaringClass);
//        System.out.println(SeasonEnum.SPRING.equals("SPRING"));

//        int ordinal = SeasonEnum.SUMMER.ordinal();
//        System.out.println(ordinal);
//        int i = SeasonEnum.SUMMER.compareTo(SeasonEnum.SPRING);
//        System.out.println(i);

//        boolean equals = SPRING.equals(SPRING);
//        System.out.println(equals);

        String key = "1";
        String channel = "unionpay";
        PayEnum payEnum = PayEnum.match(key, channel);
        System.out.println(payEnum);

//        String str = "start";
//        for (int i = 0;i < 100;i++){
//            str = str + "hello";
////             str = String.join(str, "hello");
//        }
////        str = "aaa";
////        String s = String.join("_","list");
//        System.out.println(str);
//        System.out.println();


    }
}
